package com.hl.controller;

import com.hl.annotations.After;
import com.hl.annotations.Autowired;
import com.hl.annotations.Before;
import com.hl.annotations.Controller;
import com.hl.annotations.RequestMapping;
import com.hl.server.TestServer;
import com.hl.util.TestAfterImpl;
import com.hl.util.TestBeforeImpl;

@Controller
@RequestMapping("ttt")
public class TestController {
	@Autowired
	private TestServer testServer;
	
	@RequestMapping("test")
	@After(TestAfterImpl.class)
	public void test(){
		testServer.test();
	}
	
	@Before(TestBeforeImpl.class)
	@RequestMapping("test1")
	public void test1(){
		testServer.test1();
	}
}
